{
  "name": "Case 18 – Product Feature Proposal Evaluation",
  "nodes": [
    {
      "name": "On form submission",
      "type": "n8n-nodes-base.formTrigger",
      "typeVersion": 2,
      "position": [0, 0],
      "parameters": {
        "formTitle": "Product Feature Proposal Submission",
        "formDescription": "PM submits feature proposal for product roadmap evaluation",
        "formFields": {
          "values": [
            { "fieldLabel": "Product Manager Name", "requiredField": true },
            { "fieldLabel": "Product Name", "requiredField": true },
            { "fieldLabel": "Email id", "fieldType": "email", "requiredField": true },
            {
              "fieldLabel": "Feature_Proposal",
              "fieldType": "file",
              "acceptFileTypes": ".pdf",
              "requiredField": true
            }
          ]
        }
      }
    },
    {
      "name": "Upload file",
      "type": "n8n-nodes-base.googleDrive",
      "typeVersion": 3,
      "position": [220, 0],
      "parameters": {
        "inputDataFieldName": "Feature_Proposal",
        "name": "={{ $json['Product Name'] + '_Feature_Proposal' }}",
        "folderId": "REPLACE_WITH_PRODUCT_PROPOSALS_FOLDER_ID"
      }
    },
    {
      "name": "Download file",
      "type": "n8n-nodes-base.googleDrive",
      "typeVersion": 3,
      "position": [420, 0],
      "parameters": {
        "operation": "download",
        "fileId": "={{ $json.id }}"
      }
    },
    {
      "name": "Extract Feature Proposal",
      "type": "n8n-nodes-base.extractFromFile",
      "typeVersion": 1,
      "position": [620, 0],
      "parameters": {
        "operation": "pdf"
      }
    },
    {
      "name": "Download Product Strategy & Prioritization Framework",
      "type": "n8n-nodes-base.googleDrive",
      "typeVersion": 3,
      "position": [820, 0],
      "parameters": {
        "operation": "download",
        "fileId": "REPLACE_WITH_PRODUCT_STRATEGY_FILE_ID"
      }
    },
    {
      "name": "Extract Product Strategy",
      "type": "n8n-nodes-base.extractFromFile",
      "typeVersion": 1,
      "position": [1020, 0],
      "parameters": {
        "operation": "pdf"
      }
    },
    {
      "name": "AI Agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "typeVersion": 3,
      "position": [220, 260],
      "parameters": {
        "promptType": "define",
        "text": "=Feature Proposal:\n{{ $('Extract Feature Proposal').item.json.text }}\n\nProduct Strategy & Prioritization Framework:\n{{ $('Extract Product Strategy').item.json.text }}",
        "options": {
          "systemMessage": "You are a Senior Product Leadership Council Member.\n\nYOUR OBJECTIVE:\nPrioritize product features that maximize customer and business impact relative to engineering and operational effort, while aligning with long-term product strategy.\n\nANALYSIS FRAMEWORK (MANDATORY):\n1. CUSTOMER IMPACT – user pain severity, adoption potential, and value creation.\n2. BUSINESS IMPACT – revenue growth, retention, expansion, or strategic differentiation.\n3. STRATEGIC ALIGNMENT – alignment with product vision, roadmap themes, and platform direction.\n4. DELIVERY EFFORT – engineering complexity, dependencies, and delivery risk.\n5. OPPORTUNITY COST – trade-offs versus competing roadmap initiatives.\n\nYOU MUST PRODUCE ONE JSON OBJECT WITH EXACTLY THESE FIELDS. ALL FIELDS ARE MANDATORY.\n\nJSON SCHEMA (STRICT):\n{\n  \"Product_Name\": \"string\",\n  \"Feature_Title\": \"string\",\n  \"Target_Customer_Segment\": \"string\",\n  \"Estimated_Customer_Impact\": \"Low | Medium | High\",\n  \"Estimated_Business_Impact\": \"Low | Medium | High\",\n  \"Estimated_Engineering_Effort\": \"Low | Medium | High\",\n  \"Strategic_Alignment\": \"Low | Medium | High\",\n  \"Impact_vs_Effort_Score_out_of_100\": \"number\",\n  \"Delivery_Risk\": \"Low | Medium | High\",\n  \"Roadmap_Decision\": \"Approved for Roadmap | Backlog\",\n  \"Product_Leadership_Comments\": \"string\"\n}\n\nINSTRUCTIONS:\n- Numeric fields MUST contain numbers only.\n- Do NOT add, remove, or rename fields.\n- Output ONLY valid JSON.\n- IMMEDIATELY call the Google Sheets Append Row tool using this JSON."
        }
      }
    },
    {
      "name": "OpenAI Chat Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "typeVersion": 1,
      "position": [0, 420],
      "parameters": {
        "model": {
          "mode": "list",
          "value": "gpt-4.1-mini"
        }
      }
    },
    {
      "name": "Append row",
      "type": "n8n-nodes-base.googleSheetsTool",
      "typeVersion": 4,
      "position": [420, 460],
      "parameters": {
        "operation": "append",
        "documentId": "REPLACE_WITH_GOOGLE_SHEET_ID",
        "sheetName": "Product Feature Proposal Evaluation Register"
      }
    },
    {
      "name": "Send Email",
      "type": "n8n-nodes-base.gmail",
      "typeVersion": 2,
      "position": [420, 260],
      "parameters": {
        "sendTo": "={{ $('On form submission').item.json['Email id'] }}",
        "subject": "Product Feature Proposal – Evaluation Outcome",
        "message": "={{ 'Dear ' + $('On form submission').item.json['Product Manager Name'] + ',<br><br>Your feature proposal has been reviewed against our product strategy and prioritization framework. We will communicate the roadmap decision and next steps shortly.<br><br>Product Leadership Team' }}"
      }
    }
  ],
  "connections": {
    "On form submission": { "main": [[{ "node": "Upload file" }]] },
    "Upload file": { "main": [[{ "node": "Download file" }]] },
    "Download file": { "main": [[{ "node": "Extract Feature Proposal" }]] },
    "Extract Feature Proposal": { "main": [[{ "node": "Download Product Strategy & Prioritization Framework" }]] },
    "Download Product Strategy & Prioritization Framework": { "main": [[{ "node": "Extract Product Strategy" }]] },
    "Extract Product Strategy": { "main": [[{ "node": "AI Agent" }]] },
    "OpenAI Chat Model": { "ai_languageModel": [[{ "node": "AI Agent" }]] },
    "Append row": { "ai_tool": [[{ "node": "AI Agent" }]] },
    "AI Agent": { "main": [[{ "node": "Send Email" }]] }
  },
  "active": false
}
